﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LY.Entity;
using LY.Entity.PageSearch;
using LY.Entity.SearchEntity;
using LY.Entity.Entities;

namespace LY.Interface
{
    public interface IRoleService
    {
        PagedList<S_Role> QueryRoleList(RoleSearch search, PageView view);
        List<S_Role> GetRoleList(int? id);
        S_Role GetRole(int? id);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int DeleteRole(int id);
        int DeleteS_Role(int id);
        int SaveRole(S_Role enterprise);

        List<S_Role> GetAllRoleList();

        int GiveAuthorization(string Authorization, int? id);
        int SaveRoleUser(string Users, int? id);

    }
}
